package com.java.tutorials.redis;

import redis.clients.jedis.Jedis;

/**
 * Created by xuzhike on 2016/1/23.
 */
public class RedisDemo {
    public static void main(String[] args){
        Jedis jedis = new Jedis("localhost");
        jedis.set("foo", "bar");
        String value = jedis.get("foo");
        System.out.println("value = "+value);
    }
}
